import wyRequest from "../utils/request/wyRequest";
// post  /search/searchAutoComplete.json?csrf_token=3afa3dc5fb064a82111c3107a67b7f26

/**
 * 搜索商品的方法
 * @returns   Promise
 * @author    221024
 */
export const ReqSearchInput = (value: string) => wyRequest.post<null, any>(`/search/searchAutoComplete.json?keywordPrefix=${value}`)

// get search/init.json?csrf_token=3afa3dc5fb064a82111c3107a67b7f26

export const ReqSearchHot = () => wyRequest.get<null, any>("/search/init.json?csrf_token=3afa3dc5fb064a82111c3107a67b7f26")